//
//  UIView+Js.h
//  JSGategoryLib
//
//  Created by sixarm on 2018/3/30.
//  Copyright © 2018年 sixarm. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Js)

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGPoint origin;
@property (nonatomic, assign) CGSize size;

@property (nonatomic, assign) CGFloat top;
@property (nonatomic, assign) CGFloat bottom;
@property (nonatomic, assign) CGFloat left;
@property (nonatomic, assign) CGFloat right;

@property (readonly) CGPoint bottomLeft;
@property (readonly) CGPoint bottomRight;
@property (readonly) CGPoint topRight;

/** drawCircle:画圆  边框宽度 */
-(void)wj_drawCircle:(float)value borderWidth:(float)width ;
/** shipAnimation:旋转动画 */
- (void)wj_shipAnimation;

/**  圆角 **/
- (void)wj_setCornerWithRadius:(CGFloat)radius;
/** 圆角加边框 **/
- (void)wj_setCornerWithRadius:(CGFloat)radius borderWidth:(CGFloat)width borderColor:(UIColor *)color;

/** 给tabbar 画线**/
- (void)addLineUp:(BOOL)hasUp andDown:(BOOL)hasDown;
- (void)addLineUp:(BOOL)hasUp andDown:(BOOL)hasDown andColor:(UIColor *)color;

/**跳转*/
- (UIViewController *)viewController;

@end
